<?php

namespace App\Models\Sale;

use App\Models\BaseModel;
use App\Models\Basic\Product;

class SaleItem extends BaseModel
{
    //
    protected $fillable=[
        'product_id',
        'order_id',
        'num',
        'cost_price',
        'sale_price',
        'total_cost_price',
        'total_sale_price'
    ];

    protected $hidden = [
    ];


    public function product()
    {
        return $this->belongsTo(Product::class,'product_id','id');
    }


}
